﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;

namespace ImageResizerGPGPU
{
    static class Program
    {
        [STAThread]
        static void Main(string [] args)
        {
            Process thisProccess = Process.GetCurrentProcess();
            Process[] processes = Process.GetProcessesByName(thisProccess.ProcessName);
            if (processes.Length > 1)
            {
                Application.Exit();
            }
            else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                MainForm mainForm = MainForm.Instance(args);
                Application.Run(mainForm);
            }
        }
    }
}
